const path = require('path')

module.exports = {
    outputDir: '../mdo-generator/src/main/resources/static',
    baseUrl: '/',

    pluginOptions: {
        'style-resources-loader': {
            preProcessor: 'less',
            patterns: [
                // `@import "~iview/src/styles/index.less"`
                path.resolve(__dirname, './src/common.less')
            ],
            resolveUrl: true
        }
    },

    devServer: {
        proxy: 'http://localhost:8080',
        compress: true,
        hot: true
    },

    lintOnSave: false
};
